package com.banggood.upms.service.impl;

import com.banggood.silk.web.api.exception.SkbException;
import com.banggood.upms.bean.po.UserAttr;
import com.banggood.upms.dao.UserAttrDao;
import com.banggood.upms.service.UserAttrService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author XuChuangFeng
 */
@Service
@Transactional(rollbackFor = SkbException.class)
public class UserAttrServiceImpl extends BaseServiceImpl<UserAttr, UserAttrDao> implements UserAttrService {

    protected final Log logger = LogFactory.getLog(getClass());

    @Override
    @Autowired
    public void setDao(UserAttrDao dao) {
        super.dao = dao;
    }

    @Override
    public List<UserAttr> selectByUserPrimaryKey(String id) {
        return dao.selectByUserPrimaryKey(id);
    }
}
